package com.igfd.tanmao.service;

import com.taobao.api.ApiException;
import com.taobao.api.response.ItemSkusGetResponse;
import com.taobao.api.response.ItemsInventoryGetResponse;
import com.taobao.api.response.ItemsOnsaleGetResponse;

import java.util.List;

public interface ItemsService {

    /**
     * 获取当前会话用户出售中的商品列表
     * @param sessionKey
     */
    public ItemsOnsaleGetResponse getTanmaoItemsOnsale(String sessionKey,Long currentPage,Long pageSize) throws ApiException;

    public ItemsInventoryGetResponse getTanmaoItemsInventory(String sessionKey, Long currentPage, Long pageSize) throws ApiException;

    /**
     * 保存天猫商品到ERP表中
     * @param sessionKey
     */
    public void addTanmaoItemsOnsaleToErp(String sessionKey) throws ApiException;

    /**
     * 根据商品ID列表获取SKU信息
     * @param numIids
     * @param sessionKey
     */
    public ItemSkusGetResponse getTanmaoItemSkus(String numIids, String sessionKey) throws ApiException;

    /**
     * 查询卖家已卖出的交易数据
     * @param sessionKey
     */
    public void getTanmaoTradesSoldGet(String orderStatus,Long currentPage,String sessionKey) throws ApiException;

    /**
     * 获取天猫所有相关的订单信息
     * @param sessionKey
     */
    public void getTanmaoAllOrderInfo(String sessionKey) throws ApiException;

    public void updateTanmaoItemQuantity(Long numIid,Long skuId,Long quantity,String sessionKey) throws ApiException;

    /**
     * 更新DAMIR DOMA宝贝的数量
     * @param sessionKey
     */
    public void updateTanmaoDamirDomaItemQuantity(String sessionKey) throws ApiException;

    public List<List<Object>> getTanmaoInventoryInfo(String sessionKey) throws ApiException;
}
